package test01.inner.demo04.d03;

/**
 * 接口的使用方式二：匿名内部类实现
 *
 * @author ZQX
 * @date 2025-04-01
 */
public class MainTest02 {
    public static void main(String[] args) {
        User zs = new User();
        zs.lunch(new InterfaceTest() {
            @Override
            public void eat() {
                System.out.println("吃米饭...");
            }
        });
    }
}
